import re


str = "我\r\n2\r\n3"

print(str, str.count("\r\n"), len(str), sep="\t")
